/* 页面容器 */
.sql-web1-container {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #111827, #1f2937);
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.sql-web1-header {
  background-color: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #374151;
}

.header-content {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-container {
  display: flex;
  align-items: center;
  space-x: 0.75rem;
}

.logo-icon-container {
  background-color: #ef4444;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #f87171, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-subtitle {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}

.header-badge-container {
  display: none;
}

@media (min-width: 768px) {
  .header-badge-container {
    display: block;
  }
}

.header-badge {
  padding: 0.25rem 0.75rem;
  background-color: rgba(55, 65, 81, 0.5);
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #d1d5db;
}

/* 主内容区 */
.main-content {
  flex-grow: 1;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.content-wrapper {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #ef4444, #f97316);
  margin-bottom: 1rem;
}

.page-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #f87171, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-description {
  color: #9ca3af;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* 登录表单区域 */
.login-form-container {
  background-color: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  transform: translate(0, 0);
  transition: all 0.15s ease;
}

.login-form-container:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px -5px rgba(59, 130, 246, 0.2);
  border-color: #4b5563;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.form-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.form-icon-container {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background-color: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.vulnerability-badge {
  padding: 0.25rem 0.5rem;
  background-color: rgba(55, 65, 81, 0.5);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}

/* 表单元素 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background-color: rgba(55, 65, 81, 0.5);
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  outline: none;
  transition: all 0.15s ease;
  color: white;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 0 0 1px #3b82f6;
  border-color: #3b82f6;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* 提交按钮 */
.submit-button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vulnerability-info {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.submit-button {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  transform: translate(0, 0);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
  background: linear-gradient(to right, #3b82f6, #6366f1);
  transform: translate(0, -0.125rem);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* SQL语句显示 */
.sql-display-container {
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.sql-display-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sql-display-title {
  font-weight: 500;
  color: #d1d5db;
}

.sql-code {
  background-color: rgba(31, 41, 55, 0.5);
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #93c5fd;
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-x: auto;
}

/* 结果显示区域 */
.result-container {
  /* 通用结果容器样式 */
}

/* 登录成功 - 获取FLAG */
.success-result {
  background: linear-gradient(to bottom right, rgba(124, 58, 237, 0.5), rgba(79, 70, 229, 0.5));
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.success-content {
  text-align: center;
}

.success-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #8b5cf6, #4f46e5);
  margin-bottom: 1rem;
}

.success-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #c7d2fe;
  margin-bottom: 0.75rem;
}

.success-message {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.flag-display {
  background: linear-gradient(to right, rgba(124, 58, 237, 0.7), rgba(79, 70, 229, 0.7));
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #e0e7ff;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* 登录失败 */
.error-result {
  background: linear-gradient(to bottom right, rgba(220, 38, 38, 0.3), rgba(234, 88, 12, 0.3));
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.error-content {
  display: flex;
  align-items: flex-start;
}

.error-icon-container {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(220, 38, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.error-title {
  font-weight: 500;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.error-message {
  color: #d1d5db;
}

/* 提示区域 */
.hints-container {
  background: linear-gradient(to bottom right, rgba(180, 83, 9, 0.2), rgba(234, 88, 12, 0.2));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(180, 83, 9, 0.3);
  backdrop-filter: blur(4px);
}

.hints-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hints-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.hints-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #fcd34d;
}

.hints-list {
  display: flex;
  flex-direction: column;
  space-y: 0.75rem;
}

.hint-item {
  display: flex;
  align-items: flex-start;
}

.hint-icon {
  color: #fcd34d;
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.hint-text {
  color: #d1d5db;
}

/* 页脚 */
.sql-web1-footer {
  background-color: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(4px);
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

.footer-text {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* 动画效果 */
.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.3);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
  }
}

/* 滚动条美化 */
.sql-code::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.sql-code::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

.sql-code::-webkit-scrollbar-thumb {
  background-color: #6b7280;
  border-radius: 4px;
}

.sql-code::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* 渐变边框效果 */
.gradient-border {
  position: relative;
  border-radius: 0.75rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Element UI 风格按钮 */
.el-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  outline: 0;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
}

.el-button:focus, .el-button:hover {
  color: #409eff;
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}

.el-button--primary {
  color: #fff;
  background-color: #409eff;
  border-color: #409eff;
}

.el-button--primary:focus, .el-button--primary:hover {
  background: #66b1ff;
  border-color: #66b1ff;
  color: #fff;
}

.el-button.is-plain {
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
}

.el-button--primary.is-plain {
  color: #409eff;
  background: #ecf5ff;
  border-color: #b3d8ff;
}

.el-button--primary.is-plain:focus, .el-button--primary.is-plain:hover {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}